// 外呼任务
const route = {
  path: '/call_task',
  redirect: '/call_task/index',
  meta: {
    roles: ['call_task'],
    title: '外呼任务',
    icon: 'waihurenwu-weixuan',
    activeIcon: 'waihurenwu-xuanzhong',
    group: 'app'
  },
  component: () => import(/* webpackChunkName: "main-index" */ '@views/index.vue'),
  children: [
    {
      path: 'index',
      name: 'call_task',
      meta: {
        roles: ['call_task']
      },
      component: () => import(/* webpackChunkName: "app-center" */ '@/views/appCenter/index.vue'),
      children: [
        {
          meta: {
            roles: ['my_call_task_list'],
            title: '预览外呼',
            group: 'my_task'
          },
          path: 'my_call_task_list',
          name: 'my_call_task_list',
          component: () => import(/* webpackChunkName: "app-mypreviewoutbound" */ '@/views/appCenter/mypreviewoutbound/index.vue')
        },
        {
          meta: {
            roles: ['my_auto_call_task_list'],
            title: '自动外呼',
            group: 'my_task'
          },
          path: 'my_auto_call_task_list',
          name: 'my_auto_call_task_list',
          component: () => import(/* webpackChunkName: "app-mypreviewoutbound" */ '@/views/appCenter/myAutoOutbound/index.vue')
        },
        {
          meta: {
            roles: ['preview_dialout_list'],
            title: '预览外呼',
            group: 'task_management'
          },
          path: 'preview_dialout_list',
          name: 'preview_dialout_list',
          component: () => import(/* webpackChunkName: "app-previewoutbound" */ '@/views/appCenter/previewoutbound/index.vue')
        },
        {
          meta: {
            roles: ['auto_call_task_list'],
            title: '自动外呼',
            group: 'task_management'
          },
          path: 'auto_call_task_list',
          name: 'auto_call_task_list',
          component: () => import(/* webpackChunkName: "app-autooutbound" */ '@/views/appCenter/autoOutbound/index.vue')
        }
      ]
    }
  ]
}

export default route
